package cn.eonshine.cuba.lsms.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 油品表
 * </p>
 *
 * @author Alan
 * @since 2018-08-03
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("b_oil_info")
public class OilInfo extends Model<OilInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * Oil basic information primary key
                         油品基础信息表主键
     */
    @TableId("ID")
    private String id;
    /**
     * oil code
                         油品编号
     */
    @TableField("OIL_CODE")
    private String oilCode;
    /**
     * oil name
                         油品名称
     */
    @TableField("OIL_NAME")
    private String oilName;
    /**
     * full name
     */
    @TableField("FULL_NAME")
    private String fullName;
    /**
     * Oil Product Class(I)：Light oil, heavy oil, gas
                         石油产品类（I）：轻油、重油、气
     */
    @TableField("OIL_TYPE1")
    private String oilType1;
    /**
     * Oil Product Class(Ⅱ)：Distillate, crude oil, natural gas, liquefied petroleum gas...
                         石油产品类（Ⅱ）：馏分油、原油，天然气，液化气
     */
    @TableField("OIL_TYPE2")
    private String oilType2;
    /**
     * Oil Product Class(III)：Gasolina, diesel, queroseno, fuel oil, asfalto ...
                         石油产品类（III）：汽油，柴油，煤油，燃料油，沥青...
     */
    @TableField("OIL_TYPE3")
    private String oilType3;
    /**
     * 0:all;1:import;2:export;3:personal
     */
    @TableField("OIL_TYPE4")
    private String oilType4;
    /**
     * 15℃ the density of oil 
                         标准密度, 油品15°时候的密度
     */
    @TableField("AVG_DENSITY")
    private BigDecimal avgDensity;
    /**
     * temperature
     */
    @TableField("TEMPERATURE")
    private BigDecimal temperature;
    /**
     * Whether it has been involved in quality testing: 0 - no; 1 - yes
                         是否已经参与了质量检测：0-否； 1-是
     */
    @TableField("IS_TEST")
    private String isTest;
    /**
     * id of unit of measure of the product
                         产品的计量单位的ID
     */
    @TableField("OIL_ID_UM")
    private BigDecimal oilIdUm;
    /**
     * creator
                         创建者
     */
    @TableField("CREATE_BY")
    private String createBy;
    /**
     * Create time
                         创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * updater
                         更新者
     */
    @TableField("UPDATE_BY")
    private String updateBy;
    /**
     * Update time
                         更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * Remarks information
                         备注信息
     */
    @TableField("REMARKS")
    private String remarks;
    /**
     * Delete the tag field
                         删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * density2 密度2
     */
    @TableField("DENSITY2")
    private BigDecimal density2;
    /**
     * 3rd code 第三方编码
     */
    @TableField("A3RD_CODE")
    private String a3rdCode;
    /**
     * enable 是否可用
     */
    @TableField("ENABLE")
    private String enable;

    @TableField("IS_FROM_INF")
    private int isFromInf;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
